import axios from '@/utils/axios.js'
/*
 * 公司管理
 */

// 列表
export const companyList = params => {
    return axios({
        url: '/sys/company/getCompanyList',
        method: 'get',
        params,
        mock: true
    })
}

// 新增
export const fetchAddCompany = data => {
    return axios({
        url: '/sys/company/addCompany',
        method: 'post',
        data,
        mock: true
    })
}

// 编辑
export const fetchEditCompany = data => {
    return axios({
        url: '/sys/company/editCompany',
        method: 'post',
        data,
        mock: true
    })
}
